<?php
/**
 * created by zzy
 * date: 2017/10/24 9:40
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class WarehouseRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Warehouse\Controllers', 'prefix'=>'warehouse'], function ($router) {

            $router->any('list', 'IndexController@lists');
            $router->any('list-stock', 'IndexController@listStock');
            $router->any('log-list', 'LogController@lists');

            //获得成品流水记录
            $router->any('get-water-list', 'LogController@getWaterList');

            $router->any('edit', 'IndexController@edit');
            $router->any('bill', 'IndexController@bill');
            $router->any('cart-list', 'CartController@lists');
            $router->any('cart-add', 'CartController@edit');
            $router->any('cart-del', 'CartController@del');
            $router->any('bill-list', 'BillController@lists');
            $router->any('bill-edit', 'BillController@edit');
            $router->any('bill-detail', 'BillController@detail');
            $router->any('out-bill', 'OutController@bill');
            $router->any('out-edit', 'OutController@edit');
            $router->any('out-confirm', 'OutController@confirm');
            $router->any('out-list', 'OutController@lists');
            $router->any('send-edit', 'SendController@edit');
            $router->any('send-confirm', 'SendController@confirm');
            $router->any('send-detail', 'SendController@detail');

            //返回对应的物流信息
            $router->any('getLogisticsDetail', 'SendController@getLogisticsDetail');


        });
    }
}